//
//  UPHButton.m
//  LoveBee
//
//  Created by wyzc on 16/6/18.
//  Copyright © 2016年 叶落知秋. All rights reserved.
//

#import "UPHButton.h"

@implementation UPHButton
-(void)layoutSubviews
{
    [super layoutSubviews];
    //获取标签的最大坐标
    CGFloat labelX=CGRectGetMaxX(self.titleLabel.frame)+2;
    //重新设置imageview的坐标
    self.imageView.frame=CGRectMake(labelX, self.imageView.frame.origin.y, self.imageView.frame.size.width, self.imageView.frame.size.height);
}

@end
